﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Checkout.aspx.cs" Inherits="smartphone.Checkout" %>

<%@ Register Src="~/UserControls/CustomerDetailsEdit.ascx" TagPrefix="uc1" TagName="CustomerDetailsEdit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="SiteSlideShow" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <span class="headerTemplate">
        Chi tiết thanh toán
    </span>
    <asp:GridView ID="GridViewCheckout" runat="server" Width="100%" CssClass="CartFullTable" AutoGenerateColumns="False" DataKeyNames="maSanPham">
        <Columns>
            <asp:BoundField DataField="tenSanPham" HeaderText="Tên sản phẩm" SortExpression="tenSanPham" />
            <asp:BoundField DataField="tongTienSanPham" HeaderText="Giá tiền" ItemStyle-CssClass="money" DataFormatString="{0:0,000}" SortExpression="donGia" />
            <asp:BoundField DataField="soLuong" HeaderText="Số lượng" SortExpression="soLuong" />
            <asp:BoundField DataField="tongTienSanPham" HeaderText="Tổng tiền" ItemStyle-CssClass="money" DataFormatString="{0:0,000}" SortExpression="tongTienSanPham" />
        </Columns>
    </asp:GridView>
    <br />
    <span class="TotalAmout" >Tổng tiền phải trả là: <asp:Label ID="totalAmountLabel" runat="server" CssClass="money" Text=""></asp:Label></span>
    <uc1:CustomerDetailsEdit runat="server" Editable="false" ID="CustomerDetailsEdit" />
    <br />
    <span>Vui lòng xác nhận các thông tin trên trước khi đặt hàng. </span>
    <asp:Button ID="placeOrderButton" runat="server" Text="Đặt hàng" CssClass="SiteButton" OnClick="placeOrderButton_Click" />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="RightContent" runat="server">
</asp:Content>
